SUPPORT / SAMPLES & SAS NOTES
 

Support

Problem Note 38458: SQLPLAN internal errors might occur when you reference a view in a query that has variables that are defined with the the LENGTH= column modifier

DetailsHotfixAboutRate It

In Base SAS® software, SQLPLAN internal errors might occur when the following events take place:

  • You reference a view that has variables that are defined with the LENGTH= modifier.
  • In an SQL procedure query, you reference calculated variables that were created earlier in the query and you reference an additional variable with a LENGTH= modifier.

The following code illustrates one case that can produce the SQLPLAN internal errors:

proc sql; create view v1 as select x length=7, y length=8 from test; create table results as select y length=8, case when upcase(x) contains "VD" and upcase(x) not contains "VICE" then 1 else 0 end as _VD , max(case when calculated _VD then 1 else . end) as cnts , case when upcase(x) contains "LEDAM" then 1 else . end as _LEDAM, count(calculated _LEDAM) as _NumLEDAM from v1; quit;

In this case, the following error messages are generated:

ERROR: sqlplan internal error: Cannot find symbol _VD, var=2,
       tag=0001. This message can be caused by attempting to
       make correlated references between two different items 
       on a single FROM clause.
ERROR: sqlplan internal error: Cannot find symbol _VD, var=2,
       tag=0001. This message can be caused by attempting to
       make correlated references between two different items 
       on a single FROM clause.
ERROR: sqlplan internal error: Cannot find symbol #TEMA001,
       var=8, tag=0001. This message can be caused by 
       attempting to make correlated references between two 
       different items on a single FROM clause.

Currently, there is no solution or workaround for this problem.

Click the Hot Fix tab in this note to access the hot fix for this issue.



Operating System and Release Information

Product FamilyProductSystemSAS Release
ReportedFixed*
SAS SystemBase SASz/OS9.1 TS1M3 SP49.2 TS2M3
Microsoft® Windows® for 64-Bit Itanium-based Systems9.1 TS1M3 SP49.2 TS2M3
Microsoft Windows Server 2003 Datacenter 64-bit Edition9.1 TS1M3 SP49.2 TS2M3
Microsoft Windows Server 2003 Enterprise 64-bit Edition9.1 TS1M3 SP49.2 TS2M3
Microsoft Windows XP 64-bit Edition9.1 TS1M3 SP49.2 TS2M3
Microsoft Windows 2000 Advanced Server9.1 TS1M3 SP4
Microsoft Windows 2000 Datacenter Server9.1 TS1M3 SP4
Microsoft Windows 2000 Server9.1 TS1M3 SP4
Microsoft Windows 2000 Professional9.1 TS1M3 SP4
Microsoft Windows NT Workstation9.1 TS1M3 SP4
Microsoft Windows Server 2003 Datacenter Edition9.1 TS1M3 SP49.2 TS2M3
Microsoft Windows Server 2003 Enterprise Edition9.1 TS1M3 SP49.2 TS2M3
Microsoft Windows Server 2003 Standard Edition9.1 TS1M3 SP49.2 TS2M3
Microsoft Windows XP Professional9.1 TS1M3 SP49.2 TS2M3
Windows Vista9.1 TS1M3 SP49.2 TS2M3
64-bit Enabled AIX9.1 TS1M3 SP49.2 TS2M3
64-bit Enabled HP-UX9.1 TS1M3 SP49.2 TS2M3
64-bit Enabled Solaris9.1 TS1M3 SP49.2 TS2M3
HP-UX IPF9.1 TS1M3 SP49.2 TS2M3
Linux9.1 TS1M3 SP49.2 TS2M3
Linux on Itanium9.1 TS1M3 SP49.2 TS2M3
OpenVMS Alpha9.1 TS1M3 SP49.2 TS2M3
Solaris for x649.1 TS1M3 SP49.2 TS2M3
Tru64 UNIX9.1 TS1M3 SP49.2 TS2M3
* For software releases that are not yet generally available, the Fixed Release is the software release in which the problem is planned to be fixed.